﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Work04_01.Models.POJO;
using DataAccessLayer.Models.POJO;

namespace Work04_01.Models.ViewPOJO
{
    public class MyUserInfo
    {
        public string userId { get; set; }

        public string userName { get; set; }

        //public string password { get; set; }

        public String deptName { get; set; }
        public String deptHost { get; set; }

        public string deptHostId { get; set; }
        public MyUserInfo(UserInfo user,Department department,userInfoPeta u)
        {
            this.userId = user.userId;
            this.userName = user.userName;
            this.deptName = department.deptName;
            this.deptHost = u.userName;
            this.deptHostId = u.userId;
            
        }

        public MyUserInfo()
        {
        }

        public MyUserInfo(string userId, string userName, string deptName, string deptHost)
        {
            this.userId = userId;
            this.userName = userName;
            this.deptName = deptName;
            this.deptHost = deptHost;
        }
    }
}